<template>
	<view>
		<newsDetail refs="detailPage"></newsDetail>
	</view>
</template>

<script>
	import newsDetail from '../../pages/news/newsdetail.vue'
	
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		created(e) {
			uni.$on('updateDetail', (e) => {
				console.log('bbb')
				this.$refs.detailPage.load(e.detail)
			})
		},
		components: {
			newsDetail
		}
	}
</script>

<style lang="scss" scoped>
</style>
